﻿<%@ Page Title="ADMINISTRAR MATERIA" Language="vb" AutoEventWireup="false" MasterPageFile="~/01ADMINISTRADOR/MPAdmin.Master" CodeBehind="admin-materia.aspx.vb" Inherits="ASI_2_UFG.WebForm3" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div class="tableform">
        <fieldset>
            <legend>
            ADMINISTRAR MATERIA
            </legend>
        </fieldset>
    
        <table>
            <tr>
                <td>
                    <asp:Label ID="label1" runat="server" Text="ID Materia"></asp:Label>
                </td>
                <td>
                    <asp:TextBox ID="txtid_materia" runat="server"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td>
                    <asp:Label ID="label2" runat="server" Text="Codigo Materia"></asp:Label>
                </td>
                <td>
                    <asp:TextBox ID="txtmateria_codigo" runat="server"></asp:TextBox>
                </td>
            </tr>
        
            <tr>
                <td>
                    <asp:Label ID="label3" runat="server" Text="Nombre"></asp:Label>
                </td>
                <td>
                    <asp:TextBox ID="txtmateria_nombre" runat="server"></asp:TextBox>
                </td>
            </tr>
            
            <tr>
               <td>
                <asp:Label ID="label4" runat="server" Text="Estado"></asp:Label>
               </td>
               <td>
               &nbsp;<asp:DropDownList ID="Estado" runat="server">
                       <asp:ListItem Value="a">Activo</asp:ListItem>
                       <asp:ListItem Value="i">Inactivo</asp:ListItem>
                   </asp:DropDownList>
               </td>
            </tr>
            
            <tr>
                <td colspan="2">
                                         
                    <asp:ImageButton ID="btninsertar" runat="server" CssClass="image" 
                        ImageUrl="~/IMAGES/funct_add.png" />
                    <asp:ImageButton ID="btnModificar" runat="server" CssClass="image" 
                        ImageUrl="~/IMAGES/funct_refresh.png" />
                    <asp:ImageButton ID="btnEliminar" runat="server" CssClass="image" 
                        ImageUrl="~/IMAGES/funct_delete.png" />
                </td>
            </tr>
            <tr>
                <td colspan="2">
                    <asp:Label ID="lbmensaje" runat="server" Text=""></asp:Label></td>
            </tr>
            
            <tr>
                <td colspan="2">
                
                    <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
                        ConnectionString="<%$ ConnectionStrings:ASI2UFG %>" 
                        SelectCommand="SELECT [id_materia], [codigo], [nombre], [estado] FROM [MATERIA]">
                    </asp:SqlDataSource>
                
                    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
                        CellPadding="4" DataKeyNames="id_materia" DataSourceID="SqlDataSource1" 
                        ForeColor="#333333" GridLines="None">
                        <RowStyle BackColor="#EFF3FB" />
                        <Columns>
                            <asp:BoundField DataField="id_materia" HeaderText="id_materia" 
                                InsertVisible="False" ReadOnly="True" SortExpression="id_materia" />
                            <asp:BoundField DataField="codigo" HeaderText="codigo" 
                                SortExpression="codigo" />
                            <asp:BoundField DataField="nombre" HeaderText="nombre" 
                                SortExpression="nombre" />
                            <asp:BoundField DataField="estado" HeaderText="estado" 
                                SortExpression="estado" />
                        </Columns>
                        <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                        <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                        <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                        <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                        <EditRowStyle BackColor="#2461BF" />
                        <AlternatingRowStyle BackColor="White" />
                    </asp:GridView>
                
                </td>
            
            </tr>
            
            
        </table>
    
    
    
    
    </div>
    
    




</asp:Content>
